<template>
	<view class="container">
		{{txtReader}}
	</view>
</template>

<script>
	import Api from '@/common/api';
	export default {
		data() {
			return {
				txtReader: ''
			}
		},
		onShow() {

		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title: e.title
			});
			
			uni.request({
				url: e.url,
				success: (res) => {
					this.txtReader = res.data;
				}
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.container {
		width: 100%;
		min-height: 100vh;
		box-sizing: border-box;
		padding: 40upx;
		font-size: 28upx;
		white-space: pre-wrap;
		word-wrap: break-word;
	}
</style>
